﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SharePoint;

namespace PropertyManagementFeatures.FeatureCode
{
    class ViewingAppointmentItemEventReceiver: SPItemEventReceiver
    {
        public override void ItemAdded(SPItemEventProperties properties)
        {
            string vendorEmail = properties.ListItem["EMail"].ToString();
           //TODO - Send email to vendor

        }

        public override void ItemUpdated(SPItemEventProperties properties)
        {
            string vendorEmail = properties.ListItem["EMail"].ToString();
            //TODO - Send email to vendor
        }

    }
}
